#define _CRT_SECURE_NO_WARNINGS
#include"list.h"
void test1()
{
	bite::list<int> lt(4, 1);
	bite::list<int>::iterator pos = lt.begin();
	for (auto e :lt)
	{
		cout << e<<" ";
	}
	cout << endl;
	lt.push_front(10);
	lt.push_front(20);
	lt.push_back(30);
	lt.push_back(40);
	lt.pop_front();
	lt.pop_back();
	for (auto e : lt)
	{
		cout << e << " ";
	}
	cout << endl;
	//pos=lt.erase(pos);
	//for (auto e : lt)
	//{
	//	cout << e << " ";
	//}
	//cout << endl;
	//lt.insert(pos, 666);
	//for (auto e : lt)
	//{
	//	cout << e << " ";
	//}
	//cout << endl;
	//lt.clear();
	//for (auto e : lt)
	//{
	//	cout << e << " ";
	//}
	//cout << endl;
}
void test2()
{
	int arr[10] = { 1,2,3,4,5,6 };
	/*bite::list<int> lt(4, 1);
	bite::list<int> lt1(lt);
	for (auto e : lt1)
	{
		cout << e<<" ";
	}*/
	bite::list<int> lt3(arr + 1, arr + 4);
	bite::list<int> lt2 = lt3;
	for (auto e : lt2)
	{
		cout << e << " ";
	}
}
int main()
{
	test1();
	return 0;
}